#ifndef __DemoFile_H__

#define __DemoFile_H__

struct Person {
    std::string     name;
    char            gender;
    short           age;
    std::string     addr;
    
    Person() {
        this->name = "";
        this->gender = 'F';
        this->age = 0;
        this->addr = "";
    }
    
    Person(const std::string& inputName, char inputGender, short inputAge, const std::string& inputAddr) {
        this->name = inputName;
        this->gender = inputGender;
        this->age = inputAge;
        this->addr = inputAddr;
    }
};

typedef struct Person PersonData;

void goThroughDirDemo(void);
void txtFileWrite(void);
void txtFileRead(void);
void binFileWrite(void);
void binFileRead(void);
    
    
#endif
